package com.ksd;

import com.ksd.common.contants.PanConstants;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * @author 飞哥
 * @date 2023-08-02$ 22:46$
 */
@SpringBootApplication(scanBasePackages = PanConstants.BASE_COMPONENT_SCAN_PATH)
@ServletComponentScan(basePackages = PanConstants.BASE_COMPONENT_SCAN_PATH)
@EnableTransactionManagement
@MapperScan(basePackages = PanConstants.BASE_COMPONENT_SCAN_PATH + ".modules.**.mapper")
@EnableAsync
public class KsdServerAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(KsdServerAdminApplication.class,args);
    }
}
